﻿
using ParaEditor.Domain.Entities;
using System.Collections.ObjectModel;
using System.Collections;
using System;

namespace ParaEditor.DAO.ParaDAO
{
    public class Para3011DAO:BaseDAO
    {
        private static Para3011 p3011 = new Para3011();
        public Para3011DAO()
            : base(p3011)
        {
        }

        public ObservableCollection<Para3011> GetObjectByInfoVer(int infoVer)
        {
            ObservableCollection<Para3011> list = new ObservableCollection<Para3011>();
            IList iList = base.GetObjectByInfoVer(infoVer);
            foreach (Para3011 item in iList)
            {
                list.Add(item);
            }
            return list;
        }

        public ObservableCollection<Para3011> GetObjectByMaxInfoVer()
        {
            ObservableCollection<Para3011> list = new ObservableCollection<Para3011>();
            int infoVer = base.GetMaxID();
            IList iList = base.GetObjectByInfoVer(infoVer);
            foreach (Para3011 item in iList)
            {
                list.Add(item);
            }
            return list;
        }

        public ObservableCollection<Para3011> GetNameCnAndPointerMap()
        {
            Hashtable NameCnAndPointerMap = new Hashtable();
            ObservableCollection<Para3011> objList = GetObjectByMaxInfoVer();

            return objList;
        }
    }
}
